package com.cxyw.qqrobot;


import com.cxyw.qqrobot.service.QQRobotService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class QQRobotController {





    @GetMapping("/test")
    public String test(String text) throws Exception {
        System.out.println(text);
        return "收到请求test";
    }


    @GetMapping("/")
    public String test1(String text) throws Exception {
        System.out.println(text);
        return "收到请求/";
    }

    @GetMapping("/QQ/send/friend")
    public String test3(String text) throws Exception {
        System.out.println(text);
        return "收到请求/QQ/send/friend";
    }



    @PostMapping("/")
    public String test2(String text) throws Exception {
        System.out.println(text);
        return "收到请求/";
    }


    @PostMapping("/message.private")
    public String test(@RequestBody Object object) throws Exception {
        System.out.println(object.toString());
        return "收到请求message.private";
    }



}
